include <iostream>
#include <fstream>
using namespace std;
 
int main()
{
    ofstream patch;
    char nop[1]={0x90};//nop
    int offset=0x760; //the Offset
    patch.open("SerialProgram.exe",ios::in|ios::binary);
    if(patch!=NULL)
    {
       patch.seekp(offset,ios::beg);
       patch.write(nop,sizeof(nop));
       patch.close();
       cout << "SerialProgram.exe is Patched"<<endl;
       cin.get();
 
    }
    else{
    cout<<"Oops File not Found !!!"<<endl;
    cin.get();
    }
    return 0;
}